<%@ page language="java" pageEncoding="UTF-8"%>
<div class="panel panel-default" ng-controller="FavoriteShowController">
	<div class="panel-heading">
		查看收藏
	</div>
	<div class="panel-body">
		<ul class="nav nav-tabs">
			<li ng-repeat="type in types" ng-class="{'active':select.id==type.id}">
				<a href="javascript:void(0);" ng-click="selectType(type);">{{type.name}}</a>
			</li>
		</ul>
		<br/>
		<table class="table table-hover">
			<thead>
				<tr>
					<th>
						标题
					</th>
					<th>
						收藏时间
					</th>
				</tr>
			</thead>
			<tbody>
				<tr ng-repeat="favorite in favorite.data">
					<td>
						<a ng-href="{{favorite.type.url}}">{{favorite.title | textOnly | summary:80}}</a>
					</td>
					<td>
						{{favorite.create_time | formatDate}}
					</td>
				</tr>
			</tbody>
		</table>
		<paginate page-count="favorite.page_count" sum="favorite.data_sum" pn="favorite.pn" click="find"></paginate>
	</div>
</div>